<%@ page pageEncoding="UTF-8"%>

<%@ taglib uri="/tags/struts-tiles" prefix="tiles"%>
<%@ taglib uri="/tags/struts-html" prefix="html"%>
<%@ taglib uri="/tags/struts-logic" prefix="logic"%>
<%@ taglib uri="/tags/struts-nested" prefix="nested"%>
<%@ taglib uri="/tags/struts-bean" prefix="bean"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="/tags/trymore" prefix="tm"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>

<style>
	.apply_0 {background-color: #DDD}
	.apply_1 {background-color: #B0DCEF}
</style>

<script>
	function ajaxDone_callback () {
		// 重新加载当前弹框页面数据
		if ($.pdialog._current != null) {
			$.pdialog.reload("app/flow/def/index.do?action=dialogFlowDefConfPage&id=${entity.id}");
		}
	}	
	
	function table_sort() {
		if ($("#tbl_flowseqs").find("tr").size() > 1) {
			$("#tbl_flowseqs").tablesorter({ 
				// set forced sort on the fourth column and i decending order. 
				sortList: [[0,0]] 
			});
		}
	}
</script>

<!-- Body -->	
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="app/flow/def/template.do?action=dialogFlowTemplatePage&defId=${entity.id}" target="dialog" title="`${entity.defName}` - 添加新审批步骤" mask="true" width="504" height="350" rel="dia_sys_tpladd"><span>添加审批节点</span></a></li>
		</ul>
	</div>
	
	<%@ include file="../template/datagrid/dataGridTemplate.jsp" %>
	
	<div class="formBar">
		<ul>
			<li>
				<div class="button"><div class="buttonContent"><button type="button" class="close">关闭</button></div></div>
			</li>
		</ul>
	</div>
</div>